#ifndef CHARGEBASE_H
#define CHARGEBASE_H

#include"../organizationInfo.h"
#include"../order.h"

#include<QThread>

//收费器接口
class ChargeBase:public QThread
{
public:

    //在这里进行收费操作，收费成功则改变status状态
    virtual void run() = 0;

    void setOrder(Order* order__){order=order__;}

    void setStatus(bool* status_){status=status_;}

    //设置资金流向组织
    virtual void setFundFlow(OrganizationInfo org)
    {
        this->org=org;
    }

protected:
    Order* order;
    bool* status;
    OrganizationInfo org;
};

#endif // CHARGEBASE_H
